<?php
/**
 * Created by PhpStorm.
 * User: MrHung
 * Date: 4/4/14
 * Time: 1:40 PM
 */

namespace Admin\Model;


class AdminConfig {
    public $id;
    public $name;
    public $value;
    public $title;


    public function exchangeArray($data)
    {
        $this->id     = (isset($data['id'])) ? $data['id'] : null;
        $this->name = (isset($data['name'])) ? $data['name'] : null;
        $this->value  = (isset($data['value'])) ? $data['value'] : null;
        $this->title  = (isset($data['title'])) ? $data['title'] : null;

    }
} 